package com.hl.qzzpbackend.service;

import com.hl.qzzpbackend.common.DeleteRequest;
import com.hl.qzzpbackend.model.dto.jobExpectation.JobExpectationAddRequest;
import com.hl.qzzpbackend.model.dto.jobExpectation.JobExpectationUpdateRequest;
import com.hl.qzzpbackend.model.entity.JobExpectation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hl.qzzpbackend.model.vo.JobExpectationVO;

import java.util.List;

/**
 * 求职期望表业务层
 * @author helong
 */
public interface JobExpectationService extends IService<JobExpectation> {

    /**
     * 新增求职期望
     * @param jobExpectationAddRequest 求职期望新增请求
     * @return 是否成功
     */
    boolean jobExpectationAdd(JobExpectationAddRequest jobExpectationAddRequest);

    /**
     * 更新求职期望
     * @param jobExpectationUpdateRequest 求职期望更新请求
     * @return 是否成功
     */
    boolean jobExpectationUpdate(JobExpectationUpdateRequest jobExpectationUpdateRequest);

    /**
     * 删除求职期望
     * @param deleteRequest 删除请求
     * @return 是否成功
     */
    boolean jobExpectationDelete(DeleteRequest deleteRequest);

    /**
     * 获取求职期望列表
     * @param userId 用户id
     * @return 求职期望列表
     */
    List<JobExpectationVO> getJobExpectationList(Long userId);
}
